(()=>{"use strict";var t,e={65677:(t,e,n)=>{var r=y(n(66694)),o=y(n(79674)),i=y(n(71350));n(76528),n(47585);var a=y(n(90146)),u=y(n(82786)),l=n(54830),f=y(n(90840)),c=y(n(40710)),s=y(n(64524)),d=y(n(55046));function y(t){return t&&t.__esModule?t:{default:t}}function b(t,e){if(t){if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(t,e):void 0}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}i.default.extend(a.default),"en"===function(t){var e,n,r,o=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=b(t))){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}(document.cookie.split("; "));try{for(o.s();!(e=o.n()).done;){var i=(n=e.value.split("="),r=2,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],l=!0,f=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);l=!0);}catch(t){f=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(f)throw o}}return u}}(n,r)||b(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i[0],u=i[1];if("Scr1wCTFdLanguage"===a)return decodeURIComponent(u)}}catch(t){o.e(t)}finally{o.f()}return null}()?i.default.locale("en"):i.default.locale("zh-cn"),r.default.init(window.init),window.CTFd=r.default,window.helpers=d.default,window.$=o.default,window.dayjs=i.default,window.nunjucks=u.default,window.Howl=l.Howl,(0,o.default)((function(){(0,s.default)(),(0,c.default)(),(0,f.default)(r.default.config.urlRoot)}))},13674:(t,e,n)=>{n(65677);var r=u(n(66694)),o=u(n(79674)),i=n(56930),a=n(96403);function u(t){return t&&t.__esModule?t:{default:t}}function l(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=f(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function f(t,e){if(t){if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){var n,r,o,i=l(document.cookie.split("; "));try{for(i.s();!(n=i.n()).done;){var a=(r=n.value.split("="),o=2,function(t){if(Array.isArray(t))return t}(r)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],l=!0,f=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);l=!0);}catch(t){f=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(f)throw o}}return u}}(r,o)||f(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=a[0],c=a[1];if("Scr1wCTFdLanguage"===u)return"en"===decodeURIComponent(c)?t:e}}catch(t){i.e(t)}finally{i.f()}return e}function d(t){var e=(0,o.default)(this).data("submission-id"),n=(0,o.default)(this).parent().parent(),u=n.find(".chal").text().trim(),l=n.find(".team").text().trim(),f=(0,o.default)(this).parent().parent();(0,a.ezQuery)({title:s("Delete Submission","删除提交"),body:s("Are you sure you want to delete correct submission from {0} for challenge {1}?","你确定要删除{0}对于{1}的正确提交吗？").format("<strong>"+(0,i.htmlEntities)(l)+"</strong>","<strong>"+(0,i.htmlEntities)(u)+"</strong>"),success:function(){r.default.api.delete_submission({submissionId:e}).then((function(t){t.success&&f.remove()}))}})}function y(t){var e=(0,o.default)("input[data-submission-id]:checked").map((function(){return(0,o.default)(this).data("submission-id")})),n=1===e.length?"submission":"submissions";(0,a.ezQuery)({title:s("Delete Submission","删除提交"),body:s("Are you sure you want to delete ".concat(e.length," ").concat(n,"?"),"你确定要删除".concat(e.length,"个提交吗？")),success:function(){var t,n=[],o=l(e);try{for(o.s();!(t=o.n()).done;){var i=t.value;n.push(r.default.api.delete_submission({submissionId:i}))}}catch(t){o.e(t)}finally{o.f()}Promise.all(n).then((function(t){window.location.reload()}))}})}(0,o.default)((function(){(0,o.default)(".delete-correct-submission").click(d),(0,o.default)("#submission-delete-button").click(y)}))}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={id:t,loaded:!1,exports:{}};return e[t](i,i.exports,r),i.loaded=!0,i.exports}r.m=e,t=[],r.O=(e,n,o,i)=>{if(!n){var a=1/0;for(c=0;c<t.length;c++){for(var[n,o,i]=t[c],u=!0,l=0;l<n.length;l++)(!1&i||a>=i)&&Object.keys(r.O).every((t=>r.O[t](n[l])))?n.splice(l--,1):(u=!1,i<a&&(a=i));if(u){t.splice(c--,1);var f=o();void 0!==f&&(e=f)}}return e}i=i||0;for(var c=t.length;c>0&&t[c-1][2]>i;c--)t[c]=t[c-1];t[c]=[n,o,i]},r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),r.j=118,(()=>{var t={118:0,671:0};r.O.j=e=>0===t[e];var e=(e,n)=>{var o,i,[a,u,l]=n,f=0;if(a.some((e=>0!==t[e]))){for(o in u)r.o(u,o)&&(r.m[o]=u[o]);if(l)var c=l(r)}for(e&&e(n);f<a.length;f++)i=a[f],r.o(t,i)&&t[i]&&t[i][0](),t[i]=0;return r.O(c)},n=self.webpackChunkctfd=self.webpackChunkctfd||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})();var o=r.O(void 0,[160,736,694],(()=>r(13674)));o=r.O(o)})();